import $axios from '../index.js'

// 内链列表
function innerList(data) {
  const url = '/innerChart/index'
  return $axios.get(url, data)
}
// 内链详情
function innerInfo(data) {
  const url = '/innerChart/read'
  return $axios.get(url, data)
}
// 内链添加
function innerSave(data) {
  const url = '/innerChart/save'
  return $axios.post(url, data)
}
// 内链编辑
function innerUpdate(data) {
  const url = '/innerChart/update'
  return $axios.post(url, data)
}
// 内链删除
function innerDelete(data) {
  const url = '/innerChart/delete'
  return $axios.post(url, data)
}

export default {
  innerList,
  innerSave,
  innerUpdate,
  innerDelete,
  innerInfo
}
